package com.tnr.scgcxx.model;

import com.tnr.scgcxx.utils.DataStatusEnum;
import com.tnr.scgcxx.utils.PlanTypeEnum;

public class Plan {
	
	private Integer plan_id;
	private Integer standard_id;
	private String standard_name;
	private Integer cus_id;
	private String cus_name;
	private Integer co_id;
	private String co_name;
	private Integer plan_xh;
	private String plan_month;
	private String plan_num;
	private String plan_type;
	private String plan_date;
	private String  plan_person;
	private String plan_status;
	
	public String getStandard_name() {
		return standard_name;
	}
	public void setStandard_name(String standard_name) {
		this.standard_name = standard_name;
	}
	public String getCus_name() {
		return cus_name;
	}
	public void setCus_name(String cus_name) {
		this.cus_name = cus_name;
	}
	public String getCo_name() {
		return co_name;
	}
	public void setCo_name(String co_name) {
		this.co_name = co_name;
	}
	
	public Integer getPlan_id() {
		return plan_id;
	}
	public void setPlan_id(Integer plan_id) {
		this.plan_id = plan_id;
	}
	public Integer getStandard_id() {
		return standard_id;
	}
	public void setStandard_id(Integer standard_id) {
		this.standard_id = standard_id;
	}
	public Integer getCus_id() {
		return cus_id;
	}
	public void setCus_id(Integer cus_id) {
		this.cus_id = cus_id;
	}
	public Integer getCo_id() {
		return co_id;
	}
	public void setCo_id(Integer co_id) {
		this.co_id = co_id;
	}
	public Integer getPlan_xh() {
		return plan_xh;
	}
	public void setPlan_xh(Integer plan_xh) {
		this.plan_xh = plan_xh;
	}
	public String getPlan_month() {
		return plan_month;
	}
	public void setPlan_month(String plan_month) {
		this.plan_month = plan_month;
	}
	public String getPlan_num() {
		return plan_num;
	}
	public void setPlan_num(String plan_num) {
		this.plan_num = plan_num;
	}
	public String getPlan_type() {
		return plan_type;
	}
	public void setPlan_type(String plan_type) {
		this.plan_type = plan_type;
	}
	public String getPlan_date() {
		return plan_date;
	}
	public void setPlan_date(String plan_date) {
		this.plan_date = plan_date;
	}
	public String getPlan_person() {
		return plan_person;
	}
	public void setPlan_person(String plan_person) {
		this.plan_person = plan_person;
	}
	public String getPlan_status() {
		return plan_status;
	}
	public void setPlan_status(String plan_status) {
		this.plan_status = plan_status;
	}
	@Override
	public String toString() {
		return "Plan [plan_id=" + plan_id + ", standard_id=" + standard_id + ", cus_id=" + cus_id + ", co_id=" + co_id
				+ ", plan_xh=" + plan_xh + ", plan_month=" + plan_month + ", plan_num=" + plan_num + ", plan_type="
				+ plan_type + ", plan_date=" + plan_date + ", plan_person=" + plan_person + ", plan_status="
				+ plan_status + "]";
	}
	public String getStatusName() {
		if(this.plan_status==null)return null;
		return DataStatusEnum.getName(this.plan_status);
	}
	public String getPlanTypeName() {
		if(this.plan_type==null)return null;
		return PlanTypeEnum.getName(this.plan_type);
	}

}
